function main( json, pp, hh ) {
  /*
  var COMPANY = "COMPANY";
  var ADDRESS = "ADDRESS";
  var records = new JSONArray();
  
  var ENEL = new JSONObject();
  ENEL.put(COMPANY,"Enel");
  ENEL.put(ADDRESS,"Via Roma 1 Napoli");
  records.put(ENEL);
  
  var PIRELLI = new JSONObject();
  PIRELLI.put(COMPANY,"Pirelli");
  PIRELLI.put(ADDRESS,"Corso Umberto I 1 Napoli");
  records.put(PIRELLI);
  
  var SOULSOFTWARE = new JSONObject();
  SOULSOFTWARE.put(COMPANY,"SoulSoftware");
  SOULSOFTWARE.put(ADDRESS,"Viale San Modestino 2 Mercogliano");
  records.put(SOULSOFTWARE);
  
  var result = new JSONObject();
  
  result.put("records",records);
  return result;
  */
  
  /*
  var result = new JSONObject();
  result.put("records",ENEL);
  return result;
  */
  
  var root = "http://win.softphone.it/servizi/getcustomers.aspx";
  var param = "";
  var ret = null;
  try{
      var url = new java.net.URL(root + param);
      var u = url.openConnection();
      var inB = new java.io.BufferedReader( new java.io.InputStreamReader(u.getInputStream()));
      var inputLine;    
      var result = "";
 
      while ((inputLine = inB.readLine()) != null) 
            result += " " + inputLine;
      inB.close();         
      ret = new JSONObject(result);
  } catch( e ){
      Log.debug("Error calling service rest" + e);
      var ex = "{ exception: { message: '" + e + "'} }";
      return ex;
  }
  return ret;

}

/*
function main( ui ) {

  var records = new JSONArray();

  
    EntityManager.findAllUsers(  
     function(result) {
      
      for( var i = 0; i < result.size() ; ++i ) {
        
        records.put( JSONObject.wrap(result.get(i)) );
      }
      
    });
    
    var result = new JSONObject();
    
    result.put( "records", records );
    

    return result.toString() ;
  

}
*/